<!--<?php 
$sel = $plateField  ? 'class="area"' : '';
$areaall = !$area ? 'sel-all-sel' : '';
print <<<EOT
-->
<div class="pw-hbox mt mb">
	<div id="querys">
		<ul id="query-list" class="cc">
			<li $sel>
				<em>[区域]</em>
<!--#
$tmpurl = $houseinfo->urlCompounds($pageBaseUrl, $url_add, array('area','plate'));
#-->
				<a class="sel-all {$areaall}" href="{$tmpurl}">不限</a>
<!--#
$sel_area[$area] = $sel_class;
foreach ((array)$areaField as $key => $value) {
#-->
				<a href="{$tmpurl}&area=$key"{$sel_area[$key]}>{$value}</a>
<!--#
}
#-->
				</li>
<!--#
if($plateField){
#-->				
			<li class="sub-area">
<!--#
$plateall = !$plate ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'plate');
#-->
				<a class="sel-all {$plateall}" href="{$tmpurl}">不限</a>
<!--#
$sel_plate[$plate] = $sel_class;
foreach ((array)$plateField as $key => $value) {
#-->
				<a href="{$tmpurl}&plate=$key"{$sel_plate[$key]}>{$value}</a>
<!--#
}
#-->
			</li>
<!--#
}
#-->
			<li>

				<em>[价格]</em>
<!--#
$avepriceall = !$aveprice ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'aveprice');
#-->
				<a class="sel-all {$avepriceall}" href="{$tmpurl}">不限</a>
<!--#
$sel_aveprice[$aveprice] = $sel_class;
foreach ((array)$avepriceField as $key => $value) {
#-->
				<a href="{$tmpurl}&aveprice=$key"{$sel_aveprice[$key]}>{$value}</a>
<!--#
}
#-->
			</li>
			<li>
				<em>[物业]</em>
<!--#
$propertyall = !$property ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'property');
#-->
				<a class="sel-all {$propertyall}" href="{$tmpurl}">不限</a>
<!--#
$sel_property[$property] = $sel_class;
foreach ((array)$propertyField as $key => $value) {
#-->
				<a href="{$tmpurl}&property=$key"{$sel_property[$key]}>{$value}</a>
<!--#
}
#-->
			</li>
			<li>
				<em>[建筑]</em>
<!--#
$buildtypeall = !$buildtype ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'buildtype');
#-->
				<a class="sel-all {$buildtypeall}" href="{$tmpurl}">不限</a>
<!--#
$sel_buildtype[$buildtype] = $sel_class;
foreach ((array)$buildTypeField as $key => $value) {
#-->
				<a href="{$tmpurl}&buildtype=$key"{$sel_buildtype[$key]}>{$value}</a>
<!--#
}
#-->
			</li>
			<li>
				<em>[房型]</em>
<!--#
$housetypeall = !$housetype ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'housetype');
#-->
				<a class="sel-all {$housetypeall}" href="{$tmpurl}">不限</a>
<!--#
$sel_housetype[$housetype] = $sel_class;
foreach ((array)$housetypeField as $key => $value) {
#-->
				<a href="{$tmpurl}&housetype=$key"{$sel_housetype[$key]}>{$value}</a>
<!--#
}
#-->
			</li>
			<li class="fitment">
				<em>[装修]</em>
<!--#
$paystatusall = !$paystatus ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'paystatus');
#-->
				<a class="sel-all {$paystatusall}" href="{$tmpurl}">不限</a>
<!--#
$sel_paystatus[$paystatus] = $sel_class;
foreach ((array)$fitmentField as $key => $value) {
#-->
				<a href="{$tmpurl}&paystatus=$key"{$sel_paystatus[$key]}>{$value}</a>
<!--#
}
#-->
			</li>
			<li class="status">
				<em>[状态]</em>
<!--#
$statusall = !$status ? 'sel-all-sel' : '';
$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, 'status');
#-->
				<a class="sel-all {$statusall}" href="{$tmpurl}">不限</a>
<!--#
$sel_status[$status] = $sel_class;
foreach ((array)$buildStatus as $key => $value) {
#-->				
				
				<a href="{$tmpurl}&status=$key"{$sel_status[$key]}>$value</a>
<!--#
}
#-->				

			</li>
		</ul>
	</div>
</div>
<!--#
if($ifListQuery){
#-->
<dl id="query-selected" class="pw-hbox">

<dt>当前找房条件 >></dt>
<dd class="cc">
<!--#
foreach ($url_add as $key => $value) {
	if (isset($house_field[$key])) {
	$tmpurl = $houseinfo->urlCompound($pageBaseUrl, $url_add, $key);
	if($key == 'status') {
		$value = $house_field[$key][$value];
	}else if($key == 'aveprice'){
		$value = $house_field[$key][$value]['value'];
	}else{
		$value = $house_field[$key][$value]['name'];
	}
#-->
<a href="{$tmpurl}" class="items">{$value}<span class="clear-icon"></span></a>
<!--#
	}
}
#-->
		<a class="clear-query" href="$pageBaseUrl">清空条件</a>
	</dd>
</dl>
<!--#
}
#-->
<div class="cc mb">
	<div class="w-715 fl">
		<div id="houses" class="pw-hbox">
			<div class="hd">
				<h3>所有楼盘</h3>
				<ul class="options">
					<li class="text-list"><a href="{$pageUrl}&type=2&page=$page">文字</a></li>
					<li class="pic-list"><a href="{$pageUrl}&type=1&page=$page">图文</a></li>
					<li class="page-size">
						<label>显示个数：</label>
						<select name="page-size" onchange="window.location='{$perpageUrl}&perpage=' + this.value;">
							<option value="20"{$sel_perpage[20]}>20</option>
							<option value="40"{$sel_perpage[40]}>40</option>
							<option value="60"{$sel_perpage[60]}>60</option>
						</select>
					</li>
					<li class="sort-order">
						<label>排序方式：</label>
						<select name="order" onchange="window.location='{$orderUrl}&order=' + this.value;">
							<option value="0">按均价高低</option>
							<option value="1"{$sel_order[1]}>由低到高</option>
							<option value="2"{$sel_order[2]}>由高到低</option>
						</select>
					</li>
				</ul>
			</div>
<!--# require_once PrintEot($type == 2 ? 'list_txt' : 'list_pic'); #-->
			<div class="ft">
				{$pages}
				<ul class="options">
					<li class="page-size">
						<label>显示个数：</label>
						<select name="page-size" onchange="window.location='{$perpageUrl}&perpage=' + this.value;">
							<option value="20"{$sel_perpage[20]}>20</option>
							<option value="40"{$sel_perpage[40]}>40</option>
							<option value="60"{$sel_perpage[60]}>60</option>
						</select>
					</li>
					<li class="sort-order">
						<label>排序方式：</label>
						<select name="order" onchange="window.location='{$orderUrl}&order=' + this.value;">
							<option value="0">按均价高低</option>
							<option value="1"{$sel_order[1]}>由低到高</option>
							<option value="2"{$sel_order[2]}>由高到低</option>
						</select>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="w-235 fr">
<!--#
if ($houseloginfo) {
#-->
		<div id="recent-house" class="house-tools mb">
			<div class="hd">
				<h3>最近浏览过的楼盘</h3>
			</div>
			<div class="bd">
				<ul class="pw-hlist pho-list cc">
<!--#
foreach ($houseloginfo as $key => $value) {
$value['logo'] = $houseinfo->getLogo($value['logo']);
#-->
					<li><a href="{$houseBaseUrl}q=info&hid={$value['hid']}"><img src="{$value['logo']}" onerror="this.src='mode/house/images/non-house.gif'" /><span>{$value['name']}</span></a></li>
<!--# } #-->
				</ul>
			</div>
		</div>
<!--# } #-->
		<div class="house-tools mb">
			<div class="hd">
				<h3>推荐楼盘</h3>
				<!-- <span class="more"></span> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list">
<!--#
$cache_recommendHouse = $pageCache->getData('recommendHouse');

foreach ($cache_recommendHouse as $key=> $value) { 
	$temp = $key + 1;
#-->
					<li><a href="$value[url]"><span class="house-name">{$temp}.{$value[name]}</span> <span>{$value[area]}</span> <span>{$value[aveprice]}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
				</ol>
			</div>
		</div>
		<div class="house-tools mb">
			<div class="hd">
				<h3>{$areaName}热门楼盘</h3>
				<!-- <span class="more"></span> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list rank">
<!--#
$cache_hotHouse = $pageCache->getData('hotHouse');
foreach ($cache_hotHouse as $key=> $value) { 
#-->
					<li><a href="{$value[url]}"><span class="house-name">{$value[title]}</span> <span class="city">$value[area]</span> <span>{$value[aveprice]}</span> </a></li>
<!--# } #-->
				</ol>
			</div>
		</div>
<!-- 广告位 start -->		
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.House.List.Rigtht','','','');
if($htmlAdvert){
print <<<EOT
-->
		<div class="mb">$htmlAdvert</div>
<!--
EOT;
}print <<<EOT
-->
<!-- 广告位 end -->
		<div class="house-tools mb">
			<div class="hd">
				<h3>{$areaName}最新楼盘</h3>
				<!-- <span class="more"></span> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list">
<!--#
$cache_newHouse = $pageCache->getData('newHouse');
foreach ($cache_newHouse as $key=> $value) { 
	$temp = $key + 1;
#-->
					<li>
					<a href="{$value[url]}"><span class="house-name">{$temp}.{$value[title]}</span> <span class="city">$value[area]</span> <span>{$value[aveprice]}</span> </a>
					</li>
<!--# } #-->
				</ol>
			</div>
		</div>
		<!--  div class="mb" style="border:1px solid #D9D9D9; padding: 6px;">
			<div style="margin-bottom: 6px;"><a href="#"><img src="images/ad220x75.jpg"></a></div>
			<div><a href="#"><img src="images/ad220x75.jpg"></a></div>
		</div -->
	</div>
</div>
<!-- 广告位 start -->		
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.House.List.Footer','','','');
if($htmlAdvert){
print <<<EOT
-->
		<div class="mb">$htmlAdvert</div>
<!--
EOT;
}print <<<EOT
-->
<!-- 广告位 end -->
<!-- <div class="mb"><a href="#"><img src="images/ad960.jpg" /></a></div> -->
<!--
EOT;
?>-->